<?php if(isset($this->photos['category']['categoryName'])) { ?>
<h1 class="body-box-title">Album: <?php echo $this->photos['category']['categoryName']; ?></h1>
<p><a href="/photo/<?php echo $this->photos['owner']['userID']; ?>"><?php echo $this->photos['owner']['userNick'];?></a> create the category: <strong><?php echo $this->photos['category']['categoryName']; ?></strong> at <?php echo date('Y-m-d',$this->photos['category']['categoryCreated']); ?>.
It was uploaded <strong><?php echo $this->photos['category']['categoryCounts']; ?></strong> photos.</p>
<?php } else { ?>
<h1 class="body-box-title">Momoger Photos</h1>
<p>Momoger have uploaded <strong><?php echo $this->recordCount; ?></strong> photos.</p>
<?php } ?>
<?php if(count($this->photos['photos'])) { ?>
<?php foreach($this->photos['photos'] as $p) { $src = $p['userID'] . '/' . date('Ym', $p['photoCreated']) . '/120x80/' . $p['photoID'] . '.png'; ?>
<div class="thumb-box fl">
	<a href="/photo/<?php echo $p['photoID']; ?>.png" target="_blank" title="<?php echo $p['photoName']; ?>"><img alt="<?php echo $p['photoName']; ?>" src="<?php echo $this->photoDomain . $src; ?>"></a>
</div>
<?php } ?>
<?php echo $this->render('pages.phtml'); ?>
<?php } ?>